package cn.bdqn.pn.service.base.impl;

import cn.bdqn.pn.pojo.base.Address;
import cn.bdqn.pn.reposity.base.AddressRepository;
import cn.bdqn.pn.service.base.AddressService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("addressService")
public class AddressServiceImpl implements AddressService {

    @Autowired
    AddressRepository addressRepository;

    @Override
    public List<Address> findAll() {
        return addressRepository.findAll();
    }
}
